package pl.kosmowska.ewelina.client.views;

import java.util.Date;
import java.util.List;

import pl.kosmowska.ewelina.client.app.requestfactory.dto.LoanDataProxy;
import pl.kosmowska.ewelina.client.views.impl.beans.Installment;

import com.google.gwt.place.shared.Place;
import com.google.gwt.user.client.ui.IsWidget;

public interface LoanEditView extends IsWidget {

	interface Presenter {
		void goTo(Place place);

		void goToLoanPlace();

		void saveLoanData();

		void generateLoan(String name, float value, float percentage, Date startDate, int feeChoice, float fee, int installmentChoice, int monthNumber, float otherPayments);



	}

	void setPresenter(Presenter presenter);


	void setData(LoanDataProxy loanData);

	void showMessage(String errorMessage);

	void reInitView();

	boolean isAlreadyInit();

	void setAlreadyInit(boolean alreadyInit);


	void showSummary(float clientCapital, float loanCapitalm, float feePayment,
			float otherPayments, float totalAmount);


	void showGrid(List<Installment> installmentList);


	void loadChart(float clientCapital, float interestAmount, float feePayment);

}
